package Dao

type Consumer struct {
	Consumer_id int `gorm:"column:consumer_id"`
	Consumer_name string `gorm:"column:consumer_name"`
	Consumer_address string `gorm:"column:consumer_address"`
	Consumer_postcode string `gorm:"column:consumer_postcode"`
	Consumer_phone string `gorm:"column:consumer_phone"`
	//Is_del bool `gorm:"column:is_del"`
}

type Factory struct {
	Factory_id string `gorm:"column:factory_id"`
	Factory_name string `gorm:"column:factory_name"`
	//Is_del bool `gorm:"column:is_del"`
}

type Goods struct {
	Goods_id string `gorm:"column:goods_id"`
	Goods_name string `gorm:"column:goods_name"`
	//Gc_id string `gorm:"column:gc_id"`
	Goods_number int `gorm:"column:goods_number"`
	Goods_price int `gorm:"column:goods_price"`
	Factory_id string `gorm:"column:factory_id"`
	//Is_del bool `gorm:"column:is_del"`
}

type Goods_class struct {
	Gc_id string `gorm:"column:gc_id"`
	Gc_info string `gorm:"column:gc_info"`
	//Is_del bool `gorm:"column:is_del"`
}

type Orders struct {
	Order_id string `gorm:"column:order_id"`
	Consumer_id int `gorm:"column:consumer_id"`
	Goods_id string `gorm:"column:goods_id"`
	Order_date string `gorm:"column:order_date"`
	Order_request string `gorm:"column:order_request"`
	Order_is_availabe bool `gorm:"column:order_is_availabe"`
	Order_freight int `gorm:"column:order_freight"`
}

type Order_details struct {
	Order_details_id string `gorm:"column:order_details_id"`
	Order_id string `gorm:"column:order_id"`
	Goods_id string `gorm:"column:goods_id"`
	Order_details_number string `gorm:"column:order_details_number"`
	Factory_id string `gorm:"column:factory_id"`
	Order_sum_money int `gorm:"column:order_sum_money"`
	//Is_del bool `gorm:"column:is_del"`
}

type Bill struct {
	Bill_id int `gorm:"column:bill_id"`
	Consumer_name string `gorm:"column:consumer_name"`
	Goods_name string `gorm:"column:goods_name"`
	Bill_class string `gorm:"column:bill_class"`
	Sum_money int `gorm:"column:sum_money"`
	Bill_date string `gorm:"column:bill_date"`
	//Is_del bool `gorm:"column:is_del"`
}
